<h4>売上ランキング</h4>
<ul id="ranking">
{{section name=sec start=0 loop=$charts_data step=1}}
{{ if $smarty.section.sec.first  }}
<li class="rank_no1">
<p id="rank_1">第1位</p>
<a href="{{'pc/topItem/index'|U}}?id={{$charts_data[sec].id}}" title="{{$charts_data[sec].goods_name}}"><img src="{{$charts_data[sec].goods_image}}" /></a>
<br clear="all" />
<h5><a href="{{'pc/topItem/index'|U}}?id={{$charts_data[sec].id}}">{{$charts_data[sec].goods_name}}</a></h5>
<em>定価：{{$charts_data[sec].goods_rate|number_format}}円（税込）</em>
</li>
{{ elseif $smarty.section.sec.index ==  1}}
<li>
<p id="rank_2">第2位</p>
<a href="{{'pc/topItem/index'|U}}?id={{$charts_data[sec].id}}" title="{{$charts_data[sec].goods_name}}"><img src="{{$charts_data[sec].goods_image}}" /></a>
<br clear="all" />
<h5><a href="{{'pc/topItem/index'|U}}?id={{$charts_data[sec].id}}">{{$charts_data[sec].goods_name}}</a></h5>
<em>定価：{{$charts_data[sec].goods_rate|number_format}}円（税込）</em>
</li>
{{ elseif $smarty.section.sec.index ==  2}}
<li>
<p id="rank_3">第3位</p>
<a href="{{'pc/topItem/index'|U}}?id={{$charts_data[sec].id}}" title="{{$charts_data[sec].goods_name}}"><img src="{{$charts_data[sec].goods_image}}" /></a>
<br clear="all" />
<h5><a href="{{'pc/topItem/index'|U}}?id={{$charts_data[sec].id}}">{{$charts_data[sec].goods_name}}</a></h5>
<em>定価：{{$charts_data[sec].goods_rate|number_format}}円（税込）</em>
</li>
{{else}}
<li>
   第{{$smarty.section.sec.index+1}}位
<h5><a href="{{'pc/topItem/index'|U}}?id={{$charts_data[sec].id}}">{{$charts_data[sec].goods_name}}</a></h5>
</li>
{{/if}}

{{/section}}
</ul>